package com.zjj.service.impl;

import com.zjj.mapper.UserRoleMapper;
import com.zjj.pojo.entity.UserRole;
import com.zjj.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    UserRoleMapper userRoleMapper;
    @Override
    public int addUserRole(UserRole userRole) {
        return userRoleMapper.addUserRole(userRole);
    }

    @Override
    public int deleteUserRole(Integer id) {
        return userRoleMapper.deleteUserRole(id);
    }

    @Override
    public int updateRole(UserRole userRole) {
        return userRoleMapper.updateRole(userRole);
    }

    @Override
    public List<UserRole> getRoleList() {
        return userRoleMapper.getRoleList();
    }
}
